FROM openjdk:8-alpine
#拥有者
LABEL maintainer "xcbeyond"

VOLUME [ "/tmp" ]
# app.jar是你项目的jar包
COPY apartment-admin.jar /apartment-admin.jar
#对外暴露的端口
EXPOSE 1000

ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]